<template>
    <div>
        <img src="/static/images/haha.png" alt="">
        <h1>卖火柴的小女孩</h1>
        <button @click='buy'>购买</button>
    </div>
</template>
<script>
export default {
    data(){

    },
    methods:{
        buy(){
            console.log("你来了")
            wx.requestPayment({
  timeStamp: '',
  nonceStr: '',
  package: '',
  signType: 'MD5',
  paySign: '',
  success (res) { },
  fail (res) { }
})
        }
    }
}

</script>

